
import React from 'react';
import { Router, Switch, Route, Redirect } from 'react-router-dom';
import { history, lazy } from 'router';

const Workbench = lazy(() => import('page/Workbench'))
const WxSignIn = lazy(() => import('page/WxSignIn'))

export default () => {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/workbench/:key?" component={Workbench} /> {/*  工作台 */}
        <Route path="/wxSignIn" component={WxSignIn} /> {/*  工作台 */}
        <Route render={() => <Redirect to="/workbench" />} />
      </Switch>
    </Router>
  );
}


